package com.cddx.logistics.domain.pojo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class Vehicle implements Serializable {
    @ApiModelProperty("车辆ID")
    private Integer id;

    @NotBlank(message = "车牌号不能为空")
    @ApiModelProperty("车牌号码")
    private String license;

    @ApiModelProperty("车辆类型")
    private String type;

    @NotNull(message = "载重不能为空")
    @ApiModelProperty("载重(吨)")
    private Integer capacity;

    @ApiModelProperty("发动机号")
    private String engineNumber;

    @ApiModelProperty("状态")
    private String status;

    @ApiModelProperty("备注")
    private String text;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;
}
